package com.project.controller.web;

import com.project.service.base.BaseService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpSession;

/**
 * Created by TAO on 2016/3/22.
 */
@RequestMapping("/")
@Controller
public class MainController extends BaseService{
    @RequestMapping(method = RequestMethod.GET)
    public String index(Model model, HttpSession session) {

        log.info("login======");

        return "userLogin";
    }

    @RequestMapping(value = "login")
    public String index2(ModelMap model, HttpSession session) {

        return "userLogin";
    }

    @RequestMapping(value = "userLogin")
    public String index3(ModelMap model, HttpSession session) {

        return "userLogin";
    }
}